@model System.Collections.Generic.IEnumerable<Icms.Core.Model.User>
@foreach (var o in Model)
   {
<tr id='o@(o.Id)'>
<td>
@o.Login
</td>
<td>@if(o.CourtId.HasValue) {
        @o.Court.Title
        }</td>
    <td>
        @o.FirstName @o.LastName
    </td>
    <td>
        @string.Join(", ",o.Roles.Select(v =>v.Name).ToArray())
    </td>
    <td>
    @Html.PopupFormActionLink("ChangePassword", "parola", parameters: new object[] { o.Id }, htmlAttributes: new { @class = "abtn" })
    </td>
    <td>        
        @Html.PopupFormActionLink("Edit","Editeaza", parameters: new object[] { o.Id }, htmlAttributes: new { @class = "abtn" })
    </td>
    <td>
       @Html.Partial("delbtn",o.Id)
    </td>
</tr>
}
